<table>
    <tbody>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="name"><g:message code="workflow.name" default="Name" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'name', 'errors')}">
                <g:textField name="name" maxlength="20" value="${fieldValue(bean: workflowInstance, field: 'name')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="domain"><g:message code="workflow.domain" default="Domain" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'domain', 'errors')}">
                <g:textField name="domain" maxlength="30" value="${fieldValue(bean: workflowInstance, field: 'domain')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="recordType"><g:message code="workflow.recordType" default="Record Type" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'recordType', 'errors')}">
                <g:select name="recordType.id" from="${org.icress.fusion.admin.RecordType.list()}" optionKey="id" value="${workflowInstance?.recordType?.id}" noSelection="['null': '']" />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="department"><g:message code="workflow.department" default="Department" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'department', 'errors')}">
                <g:select name="department.id" from="${org.icress.fusion.b2b.department.list()}" optionKey="id" value="${workflowInstance?.department?.id}" noSelection="['null': '']" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="isActive"><g:message code="workflow.isActive" default="Is Active" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'isActive', 'errors')}">
                <g:checkBox name="isActive" value="${workflowInstance?.isActive}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="description"><g:message code="workflow.description" default="Description" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowInstance, field: 'description', 'errors')}">
                <g:textArea name="description" rows="5" cols="40" value="${fieldValue(bean: workflowInstance, field: 'description')}" />
            </td>
        </tr>
    
    </tbody>
</table>